<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">

<mapper namespace="com.lgywin.<#if serverName == "runserver">runserver<#else>userserver</#if>.dao.${entity.name}Mapper">
    <!--
    <select id="select" parameterType="com.lgywin.<#if serverName == "runserver">runserver<#else>userserver</#if>.entity.query.${entity.name}Query" resultType="com.lgywin.<#if serverName == "runserver">runserver<#else>userserver</#if>.entity.${entity.name}">
        select *
        from `${entity.name}`
        <#list entity.fieldList as field>
            <#if (field.type.javaType == "String")>
        <where>
            <if test="${field.name} != null and ${field.name} != ''">
                and `${field.name}` like concat('%',<#noparse>#{</#noparse>${field.name}<#noparse>}</#noparse>,'%')
            </if>
        </where>
            <#break>
            </#if>
        </#list>
    </select>
    -->
</mapper>